package com.lsc.www.day05;

public class OOTest {
    public static void main(String[] args) {
        //实例化一个对象
        People people = new People();
//        people.name = "张三";
//        people.sex = "男";
//        people.age = 20;
//        System.out.println("姓名:"+people.name + "\t性别:" + people.sex
//                + "\t年龄:" + people.age);
//        people.age = -100;
//        System.out.println(people.age);
        people.setName("李四");
        System.out.println(people.getName());
        people.setAge(-100);
        System.out.println(people.getAge());
        people.run();
        People people1 = new People();
        people1.setName("王五");
        people1.setAge(18);
        people1.setSex("男");
        people1.call();
    }

}